package cn.edu.thu.laud.auth;

import java.util.EnumSet;
import java.util.List;

import org.apache.cassandra.auth.AuthenticatedUser;
import org.apache.cassandra.auth.IAuthority;
import org.apache.cassandra.auth.Permission;
import org.apache.cassandra.config.ConfigurationException;

public class AllowAllAuthority extends MemoryAuthenticator implements IAuthority {

	  public EnumSet<Permission> authorize(AuthenticatedUser user, List<Object> resource)
	    {
	        return Permission.ALL;
	    }

	    public void validateConfiguration() throws ConfigurationException
	    {
	        // pass
	    }
}
